var MANLOST = {};

MANLOST.namespace = function(str) {
	var arr = str.split("."), o = MANLOST;
	for(i=(arr[0]=="MANLOST") ? 1:0; i<arr.length; i++) {
		o[arr[i]] = o[arr[i]] || {}
		o = o[arr[i]];
	};
};

MANLOST.namespace('tool');

MANLOST.tool.checkIsInView = function(obj) {
	var h = (obj.offset().top - document.documentElement.clientHeight) - $(window).scrollTop();
	return h;
};
